package com.a2j.beans.car.series;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * Author: bzb
 * Data: 2022/1/14 22:23
 * Desc: 车系出入参对象
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "车系出入参对象")
public class CarSeriesVO {

    @ApiModelProperty(value = "车系id", required = true)
    private Integer seriesId;// 车系id

    @ApiModelProperty(value = "车系名称", required = true)
    private String seriesName;// 车系名称

    @ApiModelProperty(value = "子品牌id", required = true)
    private Integer subBrandId;// 子品牌id

    @ApiModelProperty(value = "开关 (0:关 1:开)")
    private Integer enable;// 开关

    @ApiModelProperty(value = "创建时间 (YYYY-MM-dd HH:mm:ss)")
    @JsonFormat(pattern = "YYYY-MM-dd HH:mm:ss", timezone = "GM+8")
    @DateTimeFormat(pattern = "YYYY-MM-dd HH:mm:ss") // 处理web端提交参数的bug
    private Date createTime;// 创建时间

    @ApiModelProperty(value = "创建人")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String createrName;// 创建人

    @ApiModelProperty(value = "备注")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String remark;// 备注


    // 额外出参
    @ApiModelProperty(value = "品牌id")
    private Integer brandId;// 品牌id
    @ApiModelProperty(value = "品牌名称")
    private String brandName;// 品牌名称
    @ApiModelProperty(value = "子品牌名称")
    private String subBrandName;// 子品牌名称
}
